﻿@model TGBTech.Core.Models.DanhMuc.ChiTietHangHoa

@{
    ViewBag.Title = "Create";
}

<div class="row">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption">
                    Thêm tài khoản
                </div>
                <div class="tools">
                    <button id="close" type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                </div>
            </div>
            <div class="portlet-body">
                @using (Html.BeginForm("Create", "ChiTietHangHoa", FormMethod.Post, new { id = "formCreateChiTietHangHoa" }))
                {
                    @Html.AntiForgeryToken()

                    <div class="form-horizontal">
                        @Html.ValidationSummary(true)

                        <div class="form-group">
                            <label class="col-md-3 control-label">Mã hàng hóa</label>
                            <div class="col-md-7">
                                @Html.DropDownList("HangHoaId", null, new { @class = "form-control select2me" })
                                @Html.ValidationMessageFor(model => model.HangHoaId)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Tên khác</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.OtherName, new { @class = "form-control", placeholder = "Tên gọi khác" })
                                @Html.ValidationMessageFor(model => model.OtherName)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Số lô</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.SoLo, new { @class = "form-control", placeholder = "Số lô" })
                                @Html.ValidationMessageFor(model => model.SoLo)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Quy cách</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.QuyCach, new { @class = "form-control", placeholder = "Mã tài khoản" })
                                @Html.ValidationMessageFor(model => model.QuyCach)
                            </div>
                        </div>

                        

                        <div class="form-group">
                            <label class="col-md-3 control-label">ĐVT</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.DVT, new { @class = "form-control", placeholder = "Đơn vị tính" })
                                @Html.ValidationMessageFor(model => model.DVT)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">VAT</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.VAT, new { @class = "form-control", placeholder = "VAT" })
                                @Html.ValidationMessageFor(model => model.VAT)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Ngày nhập</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.NgayNhap, new { @class = "form-control", placeholder = "Ngày nhập" })
                                @Html.ValidationMessageFor(model => model.NgayNhap)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Ngày hết hạn</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.NgayHetHan, new { @class = "form-control", placeholder = "Ngày hết hạn" })
                                @Html.ValidationMessageFor(model => model.NgayHetHan)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Đơn giá nhập</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.DonGiaNhap, new { @class = "form-control", placeholder = "Đơn giá nhập" })
                                @Html.ValidationMessageFor(model => model.DonGiaNhap)
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 control-label">Số lượng tồn</label>
                            <div class="col-md-9">
                                @Html.TextBoxFor(model => model.SoLuongTon, new { @class = "form-control", placeholder = "Số lượng nhập" })
                                @Html.ValidationMessageFor(model => model.SoLuongTon)
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-offset-3 col-md-9">
                                <input type="submit" value="Thêm" class="btn blue" />
                            </div>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>